package com.test.webfluxhtml.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;


@Configuration
@ConfigurationProperties(prefix = "og.avatar")
public class AvatarImageConfig {

    private boolean avatarRequireAuth;

    private boolean imageRequireAuth;

    private String imageTypeSupport="jpeg,jpg,png,gif,bmp";



    @NotNull
    private List<ImageSizeConfig> configs = new ArrayList<ImageSizeConfig>();

    public List<ImageSizeConfig> getConfigs() {
        return configs;
    }

    public void setConfigs(List<ImageSizeConfig> configs) {
        this.configs = configs;
    }

    public boolean isAvatarRequireAuth() {
        return avatarRequireAuth;
    }

    public void setAvatarRequireAuth(boolean avatarRequireAuth) {
        this.avatarRequireAuth = avatarRequireAuth;
    }

    public boolean isImageRequireAuth() {
        return imageRequireAuth;
    }

    public void setImageRequireAuth(boolean imageRequireAuth) {
        this.imageRequireAuth = imageRequireAuth;
    }

    public String getImageTypeSupport() {
        return imageTypeSupport;
    }

    public void setImageTypeSupport(String imageTypeSupport) {
        this.imageTypeSupport = imageTypeSupport;
    }
}
